package cn.kshost.zqyg.product.mapper;

import cn.kshost.zqyg.model.dto.product.ProductDto;
import cn.kshost.zqyg.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    List<ProductSku> selectAllProductSku(ProductDto productDto);

    List<ProductSku> selectHotProductSku();

    ProductSku selectSkuById(Integer skuId);

    List<ProductSku> selectSkuByProductId(Long id);

    void updateSale(@Param("skuId") Long skuId, @Param("num") Integer num);
}
